Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add report to file #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

embeddro
Copy link

Added the ability to output reports to a file. For CI tools.

@jtyr
Copy link
Owner

jtyr commented Feb 16, 2023

Thanks for your PR. I had the same issue where I needed to produce JUnit report in a CI pipeline. I ended up writing another script for that which executes helm kubeconform and captures the XML output. Unfortunately the output from kubeconform is not good so I had to massage the XML data a lot to get usable reporting from it.

I might backport this functionality into the pre-commit script but it will cover only JUnit (no support for json, jtap and text output).

group_kubeconform.add_argument(
"--report",
metavar="FILE",
help="config file name (default: .kubeconform)",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants